import request from "@/utils/request";
export function insertMenu(data) {
  return request({
    url: "/menu/insert",
    method: "post",
    data: data
  });
}
export function updateMenu(data) {
  return request({
    url: "/menu/update",
    method: "post",
    data: data
  });
}
export function deleteMenu(data) {
  return request({
    url: "/menu/delete",
    method: "post",
    data: data
  });
}
export function deletesMenu(data) {
  return request({
    url: "/menu/deletes",
    method: "post",
    data: data
  });
}
export function enableMenu(data) {
  return request({
    url: "/menu/enable",
    method: "post",
    data: data
  });
}
export function enablesMenu(data) {
  return request({
    url: "/menu/enables",
    method: "post",
    data: data
  });
}
export function disableMenu(data) {
  return request({
    url: "/menu/disable",
    method: "post",
    data: data
  });
}
export function disablesMenu(data) {
  return request({
    url: "/menu/disables",
    method: "post",
    data: data
  });
}
export function viewMenu(params) {
  return request({
    url: "/menu/view",
    method: "get",
    params: params
  });
}
export function pageMenu(params) {
  return request({
    url: "/menu/page",
    method: "get",
    params: params
  });
}
export function searchMenu(params) {
  return request({
    url: "/menu/search",
    method: "get",
    params: params
  });
}
